<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let arr = [1, 3, 5]
    console.log(...arr);
    let arr1 = [2, 4, 6]
    console.log(...arr, ...arr1); //合并数组
    console.log(Math.max(...arr)); //math不能使用数组，用...就可以了
    //展开运算符是针对数组，常用于合并数组和求数组最大值等
  </script>
</body>

</html>